public class Globals{
	private static Player play;
	
	public static void play(String name)
	{
		play = new Player (name);
	}
	public static void dispStats()
	{
		play.dispStats();
	}
	
	public static void takeItem(String item) {
        play.add(item);
    }
	public static void getInv() {
        play.getInv();
	}

    public static void dropItem(String item)
    {
        play.discard(item);
    }

    public static void gameOver()
    {
        play.gameOver();
	}
	public static void getEquipped()
	{
	    System.out.println("Head: " + head());
	    System.out.println("Left Hand: " + left());
	    System.out.println("Right Hand: " + right());
	    System.out.println("Chest: " + chest());
	    System.out.println("Legs: " + legs());
	    System.out.println("Feet: " + feet());
	   }
	public static String left()
	{
		return play.getLeft();
	}
	public static String right()
	{
		return play.getRight();
	}
	public static String head()
	{
		return play.getHead();
	}
	public static String chest()
	{
		return play.getChest();
	}
	public static String legs()
	{
		return play.getLegs();
	}
	public static String feet()
	{
		return play.getFeet();
	}
	public static String obj()
	{
		return play.getObj();
	}
	public static void equip(String item)
	{
		play.equip(item);
	}
	public static boolean searchInv(String item)
	{
		return play.searchInv(item);
	}
	public static int itemNum(String pattern)
	{
		return play.findItem(pattern);
	}
	public static void getInfo(int itemNum)
	{
		play.itemInfo(itemNum);
	}
	public static Player player()
	{
		return play;
	}
}
